//
//  ObtainCodeButton.m
//  GLGW_Shoping
//
//  Created by yang on 2018/11/15.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "ObtainCodeButton.h"

@implementation ObtainCodeButton

-(id)initWithTitleLableFontType:(UIFont *)aFont titleColor:(UIColor *)aColor inSuperView:(UIView *)aSuperView{
    if (self = [super initWithTitleLableFontType:aFont titleColor:aColor inSuperView:aSuperView]) {
        self.contentHorizontalAlignment = UIControlContentHorizontalAlignmentRight;
        GLGWView * lineView = [[GLGWView alloc] initWithInSuperView:self];
        lineView.backgroundColor = [UIColor colorWithHexString:@"#EAEAEA"];
        [lineView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.left.bottom.equalTo(self).offset(0);
            make.width.equalTo(@1);
        }];
    }
    return self;
}

@end
